#!/bin/sh
# Make the output files for each test

if [ ! -f ../comp ]
then
    echo "Need to build ../comp first!"
    exit 1
fi

for i in input* 
do 
    if [ ! -f "out.$i" ]
    then
        ../comp $i
        cc -o out out.s
        ./out > out.$i
        rm -f out out.s
    fi
done
